package 面向对象_中.e多态性;

/**
 * @Projectname java_based
 * @Filename man
 * @Author an
 * @Data 2022/6/30 9:51
 * @Description TODO
 */
public class Man extends Person{

    boolean isSmoking;
    int id = 1002;

    public void earnMoney(){
        System.out.println("男人负责工作养家");
    }

    public void eat() {
        System.out.println("男人多吃肉，长肌肉");
    }

    public void walk() {
        System.out.println("男人霸气的走路");
    }
}
